add function isDrawing