changeState method will now create a action call to call the transition