connected view details to mongodb