added visible attr to component