Add functions to the GUI