added alert to clearLocalStorage function