adding in support for click callbacks
passing search entry to click function