pass a selector to navigateToElement