moved download template to a seperate file