Refactored Settings menu

The setting menu was  fundamentally broken with magic numbers
everywhere, Now adding a new tab to the menu is less work