move restart dialog to notebook.js