create a class for transaction dialog