reorganize visualization codes