update repaint element