Add main page template and method