Fixed windows layout save/load

Should be rewritten from scratch for the greater good