Button Toggle n Value -Help Me?-

I have here two buttons. The goal is to have one button toggle between 5 vars and the other to change to value of the var selected. I do have a code and it works beautifully.

There is ONE problem with the code.

First let me show the code (It is a bit messy, coding methods welcomed)

int button = 2; 
int val;                     
int state;            
int press = 0;       

int button2 = 3;  
int val2;                  
int state2;               
int press2 = 0; 

int ax = 0;
int bx = 0;
int cx = 0;
int dx = 0;
int ex = 0;

void setup() {
  pinMode(button, INPUT);  
  pinMode(button2,INPUT);
  Serial.begin(9600);         
  state = digitalRead(button);
  state2 = digitalRead(button2);
}


void loop(){
  val = digitalRead(button);     
  val2 = digitalRead(button2);   
  
  if (val != state) {        
    if (val == LOW) {            
      press++; 
    }
  }
  if (press >=6) {
    press = 0;
  }
  state = val;
    
  if (val2 != state2) {
    if (val2 == LOW)   {
      press2++;
    } 
  }
  state2 = val2;
  
  switch (press) {
    case 1:
      ax = press2;
    case 2:
      bx = press2;
    case 3:
      cx = press2;
    case 4:
      dx = press2;
    case 5:
      ex = press2;
  }
  if (ax >= 60) {
     ax = press2 % 60;
  }
  if (bx >= 60) {
     bx = press2 % 60;
  }   
  if (cx >= 24) {
     cx = press2 % 24;
  }
  if (dx >= 32) {
     dx = press2 % 31;
  }
  if (ex >= 13) {
     ex = press2 % 12;
  }
  
  Serial.print(press);
  Serial.print("/");
  Serial.print(ax);
  Serial.print("/");
  Serial.print(bx);
  Serial.print("/");
  Serial.print(cx);
  Serial.print("/");
  Serial.print(dx);
  Serial.print("/");
  Serial.println(ex);
}

The problem is that the second button changes the value of every var after the selection. I only want to change one var's value at a time. ie. selected bx, second button will change value of bx, cx, dx, ex)

Explanation of code in case you don't understand it, (probably will)

sets up two buttons

ax - ex are vars to toggle between

setup arduino
setup input for button
counts how many times pressed for ea button
uses switch () to say if button one is pressed once then second button controls ax...
sets up max limit for ea var
prints values in serial

This code while be in conjunction with the clock from the earlier forum.

[u]Thank you for helping. Appreciated.[/u]

Sweet I solved my own problem... after hours! [smiley=huh.gif]

I forgot to add

break;

after the case, thus it was jumping to all the cases. [smiley=cheesy.gif]

Sorry for the trouble. [smiley=sad.gif]

----------------------------------Problems Solved----------------------------

Although I do feel the code is messy, if you have a different way to approach the goal, input is appreciated.