a simple MVC implementation without framework