mg: base views implementation