added view->model binding, fixed lots of issues