update orientation mode