factor out settings toggles