@action1
Usually what I would do is add a variable to differentiate between adding a new record and editing record.
On the OnSelect property of your add button, you can add:
Set(RecordType, "AddRecord")
On the OnSelect property of your edit button, you can add:
Set(RecordType, "EditRecord")
In the Default property of your datacards, you can do something like this:
If(Type="EditRecord", GalleryName.Selected.SiteName)