Old button creation

Old process we used to programmatically create buttons was a bit lacking.