attach map layers to window, make detail items draggable

move all functions appropriate files
remove all the window functions from panes