Added a check for good note but having issues with localStorage