Alternative way for elementVisibility directive