fixing layout issue in iOS8 where display was always in protrait when device was in landscape