modified API that will return corresponding works records on click of a count in indicator history table