add isDisplayed method