switching between searching/drawing working