adds a couple methods for the view