The list now properly saves when the page is exited.