simplify DOM.extend
improve visibility methods