Changing the active states of all the buttons. Adding some js to allow the user to go back again.