fixing index page buttons