How to create categories and subcategories in web page