refactored settings menu extension