added ajax department update