Move templates to views.