fixing up models and views
Added html templates.