add support for click handler