added example with changing screen orientation