added iOS 7 dismiss check, done preferences key