Added some error logging to GUI