Fixed tab order. Added closing windows.