ajax call should be async, oserwise the loader will apprear only at the end of the call