added checking for visibility

added checking for visibiliti of object before hint is shown