Generalise the add_navbar_item function, fix typo in eventlog module.