Updated generateSettingsPage to handle type BOOL