Enable/Disable Attribute API

Create some method in order to enable and disable resource attributes so
they can be disabled when dialog is closed.