added emergency stop button