added ios6 resources and refactoring