In the middle of working with error handling the GUI