displaySettings function added