add template for main page