first attempt to support more interaction types for html widget