added ajax for fetching sub categories of selected main category