I would like to add a button on my current canvas that will run the code bellow in a new window. The code below works fine as a stand alone code but it will not open correct