function y view search