Pass button clicks to server