initial dialog after restart

1)initial dialog after the restart
2)autoformat