addded draw event