adds visibility property to attributes