fixed issue where multiple search inputs were causing conflicts