Added an event to alert the user about saving changes based on whether a row was added or deleted.