Added onTargetChanged to the listener