add visibilityClass on dialog open