clean and restart

I have added a clean function and a restart button but  we need to fix
the behaviour of this button