added a reset button to the main GUI
ensured this works for all states of the GUI process