added basic MVC functionality