added a memory display and sessionstorage