displayed and notDisplayed now accept selectors and elements