Update function Render