Replaced the popup "Box" with a proper popup menu
Auto-close link popup menu when Goto: button was clicked
Made folding undoable