tie api client into view render