calling the draw method only when the user is actually writing