added pause functionality