add updating summary on add/edit