main goes to pane when buttons hit