redid using model instead of controller for full MVC