Change AppDelegate only when needed