General helpers for views.