pass variables to partials from layout to fix notice errors on error layout