updated search input and traversal