make player handle changing device orientation