LK & AS - error messages display on settings and dashboard; refactored dashboard.js