added template renderer to main route so window won't timeout