implement mvc lifecircle