Added location code to uiSettings