add summary item and some edit logic.