If detects localstorage, goes to Main view.