Function head of update and draw changed