updated isActive & isVisible

add argument 'parent' to define if check visible/active up to parent
and ancient