move the loader div to template