Completed functionality around selecting categories and subCats.