bug fix hide/show on index