code clean up, set_general_page as a method, remove extra widgets