Removed boilerplate code from app delegate