added the ability to keep position and whether iconized between sessions