Only apply the callback when switching levels