added logic to gui_main
Merge branch 'master' of https://github.com/nzukoski/build18