Add unsaved changes message in attribute group form and disable code field after creation