add pause video and audio logic