Configure windows only when required