renamed $transition to $stateTransition so it doesn't conflict with ui-bootstrap transition