did some changes to GUI to handle different command line arguments