fixing pause/resume button... again
implemented pause functionality