added search event listener to generate structure classes