clean useless old dialog and toolbar back to cmd