rough draft of history view and api method