fixed add/edit department issue