fixed a bug with the initHook, also we no longer redundantly transition to the same state we're already on if the user triggers an action to transition to that state