added collapsing to buttons

reset the content pane if the active button is clicked