Add functionality to views.