Update searchfunction