saves whenever we go into the background.