main page now loads from template