use table api to show table