updates list and layout.