Allow context to be passed to all modal transitions