link basic search view to controller, plus basic logic in controller not finished.