Adapat the GUI to the new API