working on legend mouse interaction