Button states change using temporary tools. code simplification. friendlier variable names