update and refresh