Making the view method work properly....still a work in progress...