Enhance:show tablehead and fix some bugs