basic support for click events sending commands over wesocket