moved templates to fore