java edit and transaction addition