updated DrawLines App to work properly