Changed the hard-coded state changes for the buttons to calling getID
from the Enums