bind data to view, bug fixes