execute command on button click