updating ajax calls for input change, loader