url params decide whether to search or to get models