refactored in order to have values changed on an existing transaction survive orientation change