correcting pause button behaviour.