Refactoring companies dashboard page