fixing buttons on index