Implemented Refresh in the GUI