adds prepend method to view.