added ajax loader before request is sent