implemented binding of data to an element