more work on the gui