Fixed ajax loader and minor fixes on index