Feature to be able to cancel changing tab