begun adding pdf and email implementation