Move page advance and data transmission code from showButton() into PathData.send().