Selected buttons with one action handleButton and tracking button states