better implementation using fixed nav