Fixed ajax loader visibility