remove gui factory main method