device orientation

added the device orientation handler