main page now in template