adding model and view to the web server code