changed play pause on visibility change