Modified AngularJS visibility directives