Added repository to res.render