change scheme judgement in appdelegate