add functionality to the GUI