finished most of api - need to figure out how to refresh view