Added onEndFreeze and onEndUnFreeze to State
program compiles and runs but without settings