changed local strorage to in memory state, and updated text