added vanilla_is_ajax() function and minor fixes in vanilla features
fixed wrong variable used as field id