Rewrote the way the states deal with enabling/disabling buttons. Now whenever a state is loaded or a button is clicked, the function enableButtons() is called, which enables/disables the appropriate buttons.