updated view, want to use MVC pattern