adding Search functionality