Create GUI.functions.R

Functions needed to control the GUI