made changes to pause video when app is out of focus