update style and markup