Moving templates to module