manage and edit mongo documents dynamically