implement stopButton