converting to MVC

Adding feature