stop button functioning