adding visibility attribute