update and insert animate