Add ap to global
Add admin mailer and error handling to webhook controller