Modularized number of buttons