added timer pausing and resuming