pass title into error templates