Complete edit functionality.