minor fixes for payto_edit