tweaked example / handled orientationchange too