updating moment adding and editing