alpha version  of save/load states, checkboxes don't work and there is a small display bug