moved get company detail api call

Fixed a couple of things you commented on in the last pull request