completed logic for edit/delete of detailed occupations and occupational groups