Using transaction in edit part controller