now properly updating windowPath on windowlistbuttons