Added window layout loading, saving and switching.