timer task working with pause and stop