Modified controller

forget to pass $query parameter to search. Removed $this->load lines.