filter 'ajax_check' used to check if it is ajax request or not