add update before render