change logic sending mails and show resources