social network development with MVC design pattern