Fixed some bugs in layout of GUI.