Made changes to create events.
Fixed the problem that I had previously: it can read users'selection to create an event.