Edit flow for records - refactored.