fixes and removed pdf/email functionality