Up/Down buttons in custom app settings

Also cleaned up some code and made the options menu look better.