Fixed header buttons
Made index more dynamic