Moved code for rendering error and resetting view to render-settings.js