added new afterprint event and the customAfterPrint function in customizations.js