Window is now constructed from json file