Implementing refresh at will with an event on the gui