Moving the payment details window to a separate dialog and making it work