switched render method to run before renderHasMany