Refactored edit_dispute action