refactoring for currency settings