sending command to the good topic on click