Some changes done into update department and add department action.