Navigation bar update now triggered by event. Fixes #39