Add observeEvent and eventReactive functions