added load error message and modified load flow (in app.js & view.js)