refactor, the main controller is now searchcontroller.