You need to do a better job of describing the design criteria. "A bunch of pots and buttons" is not going to cut it.
You need to list each and every button , pot or led in a BOM with a description of the function. Your code with all the numbered buttons and pots doesn't tell us anything. You need to decide what you're going to do and how you're going to do it.
We can help with how to do it but only if you know what it is you're trying to do. That is still not clear.