model and controller finally work
updated the other views to have model and controller working