Created createGUI function that will create the app UI.