Add base template and initial controller fn.