Refactored client to have a less bloated and undreadable render function