main controller with search and results views