mvc

few changes with mvc design pattern