initial download and set up of template