play pause on visibility changed