added stdint includes, changed addbutton call