fixed speech recognition on the button click