change before transition on navigation