Fixed update department and added it to the main window