Make search dropdown functional