Added ajax loader gif and moved styles from template to CSS file