Improved category method to account for UISplitViewController