fires on clicking the Apply button
pivot.events.on("applyButtonClick",function(){ // your code here });