connecting departments to GUI
Tidying up the syntax a bit