is_ajax function added