added buttons to states, random, and save