simplify draw windows func