update summary when exit editing