Handling the new_record event
Handling the new_record event