add code to check for screen orientation