First changing state button

Everything needs to be cleaner, but it works!