add x and y to text element