Add UINavigationControllerDelegate methods needed for custom transitions to work