Add search view logic