draggable legend; other fixes