Device orientation for mobile devices
david: fixed merge conflicts: