Make search box functional