remove todo, and improve get name element agent using function getElementAgent