moved custom transition callbacks to #doTransition method