added selected event time as parameters to selectTime