Code refactoring
Updated example project to show how to support orientation changes