added payment dialog, bug fixes