Changed app delegate to use forward declaration