Use variable instead of DOM to store cmd_id