Fixed some stuffs in the GUI.