Add functionality to pages.