added dynamic showing of sub categories and resources for that category