add orientation change event handler and debounce