updated department controller, model, and views