event for search submit