move button creation to helper