different window order
improvements window handling