adding category ajax query and category vs tag parse check