Correctly handle dialog result
Added graphical user interface to checkout script
#5 Implement checkout