add remote notification handling in didfinishloading