Updated project to support auto rotation