Finish the GUI class

prepare to debug