implemented transaction handling in UserApp