made view.html start automatically on window.load