auto capture orientation change