Scrapped popupwindow, using dialog instead. initial attempt in logtest