updated the gui added some methods