fixed menu pop ups. need to more tightly intergreate d3 functions