Fix HTTPS errors
Send reusable variables to parent controller