added a UISplitViewController and added logic to distinguish the iPhone from the iPad