Refactor buttonControl function.  Each button can now simply make a call to buttonControl.