add function of drawing line option