set up controller; bind data to view