dynamic buttons on index