Added UI for API sample for getting history

Added UI for API sample for getting history