encapsulated settingsbutton in a factory method to make the code more
readable.