added timer and pause functionality