settings ui and logic added