結果 : write the function of stop button