updating the saved instance state