implement is_ajax and var_dump