add gesture drawing code