Moved model's search function to router