added events for search and menu buttons