Took out state.transitionTo because it did not clear the input fields as expected