Remove useless code. Gui added