tweaks to make report work in the UI again, bring back window