change the template of main page