update summary and layout.