draw line when dragging; auto layout

lecture 9