Allowing navbar to be instantiated automatically.