Using finalhandler to avoid duplicate middleware call
template added