started to code get_events(); method. search can now be initialized via enter-button.