begin main gui app