I am trying to save boolean in UserDefault in swift. so when I set value in userDefault, my very next instruction is to switch to view controller and close the current view cont