Integrated UI and API sample for getting history

Integrated UI and API sample for getting history