make res.serveClient(view, data) accept second parameter and pass it to view engine