add some functionality to pages