fix infobar possition
Add undo function and modified the save to state behavior