now saves the state of list and restores in onresume