add pause animation when entering background