add onDrawBengin & onDrawEnd methods.