update activity lifycycle