working with a tabbed layout in IOS