added pdf printing and fixed attachments for sending mails mails now are sent ok ui of mails now works as expected