working with a table view using a master detail template in IOS 5