add automatic buttons