I moved it from the generic button.cpp file to the controls.cpp file to keep everything together. I also changed the button list to use the new show / hide functions.