[terminal] all gui code gathered in one GUI class; moving editor to terminal