ajax loader improvements