add search control logic and api interface in app.js