changing navigation style so no flicker