moved template into own file