adds rootviewcontroller