fixed link and unlink listeners in search