loadDefaultState() function to switch to default state on cancel with no history