Fix layout application. Update session localize to set default locale.