Minor code cleanup
Added support for preferredInterfaceOrientationForPresentation