divide by button
repurpose code using case