switched buttons from index to show page