Added before transition callback