Added functionality to select the newly added event