Update Search Function