Gui code
Merge branch 'gui_dev'