get data from button clicks