updated AppDelegate and gemfile