Add support of main page template.