Combine table items when switching from add mode back to view mode