Updated the state of the components