Made some treehouse changes to app delegate