Move window to a class variable