handler text() function when create new element