GUI: added UserDefaults class to save GUI state between sessions