Search functionality(without revert)