added app delegate
Added app delegate of real