Fixed app delage to add rootviewcontroller