How to change custom data class attributes after they have been saved