Completed the fetching functions, and the view displayed after search