Added JS action for email/print buttons