data binding and adding a controller