add function on category
step by step ajax loading