adding controller and search box