finish the visualization function to show all line