New main page template

New main page and convert group template to a partial