change orientation without first clicking button