add support to handle in the widget

Signed-off-by: kunigami <kunigami@gmail.com>