added the possibility to edit remaining_amount