Using AppDelegate
Adding Delegate.

Adding delegate to suppress warnings.