update of main page template