Add view logic to generator, added filable fields to model