adding views and functionality
js added