added an "after_save_or_update" function that is automatically called
after the save or update operation was successfully completed.