implemented reordering of subcategories functionality