update layout and media (for dataviz)