get proper id from listener