Move templates to controller