More attempts at making the GUI work