add remove function to remove line and obects created by pointer dragging