slight refactor on companies controller