adding handlers for search and slide