Listen pause/resume on window