clearing mode after place component