update appdelegate.swift