Move searching and previewing from HomeController into separate controllers.