works on changing window layout