rewrote code so that iPad and iPhone use the same architecture to display their table view