reformed the GUI structure