handle upgrade for departments

handle upgrade for departments for HR-183