store data into storage, as events page will unload