update style
adjust viewport