update to use showOrHideViews.