Add state awareness to navbar. Fixes #45