Changed models to use class based view to update models. Also added template snippets for models.