Fix widget OnClick event hook