main page template done