merge state change in header