add function that turn off camera when user click the stop button.