added closure support for is widget