update ui for repaint fast