add search function
[Issue #1]: refactor search pane, and overwrite helper method