removed double close button. fixed net gain loss on click for popups