[GUI] Fixed Undo for spinboxes