Hi Robin,
When I do the destroy I get this error when I try to open it the second time, works first time but now get this error the second time with the destroy;
Uncaught Error: The object with ID __jsview1 was destroyed and cannot be used anymore.