Model gu imerge

Part 1 fixing the GUI and model Connection.