Refactored to have window be global in text-tactical.window ns