add pause feature