Made ajax loader appear properly