fix gui entry point
Change from mfarhan12
fixes for linux compatibility