trying to make onclick on list elements in queue