extracting search view as controller for repos and files