Got the dialog working, just need to implement the copy to clipboard button.