rewrote a lot of the code for the options menus