add function of adding a line by long touch