Added AJAX calls in pagination and categories