added "next" key search functionality