pause and stop now work properly