some refactoring, add all values to pay dialog