adding views and creating tests
started working on distinguishing between types for rendering