invoke command on click