update data, layout