Move templates and update main.