Cancel in search handling