This function will return promises which will create data binding to the dom