adding a resizeable  3d window