Updated localStorage usage in dashcontroller.js