add and edit category and subcategory like an admin