Change what happens when the app goes to the background