add pause on focus lost