main.cpp chamg in to gui mode