update primary theme to auto adjust to nav size.