Adding custom attributes and locking and hiding attributes