iphone stuff and viewport stuff