Bind data to the template