add example of MVC lifecycle