Update department functionality.