Removed all global variables from GUI