Integrate MVC pattern.
Maybe, need more simple code...