fixed search in view.php