changed clearLocalStorage() to eventappinstall()