Add edit functionality to motion with revision history