Pill buttons for switching between the two pages