Update event listener to use the new data storage methods.