add functionality to select events