passes subdomain to view