added search controller and modified routing