trying to get event selected to work