added horizontal and vertical resizing dragging of div with set information
further refined button location correction when dealing with large plots