started to re-implement the GUI