Fixed display issues with iPad. Separated out some iPhone/iPad specific UI code.