refactor display table