Add device orientation event handler