Change the function of restart button in info window

As well as fix undo.