generated function to view comapny list