add `r` to the views context