added methods to GUI class