filter for show page if subdomain is not active

refactoring to retrieve companies from each instance