Prevent re-rendering UI on orientation change