Update states