moved button creation to header