made navbar work with dynamically added links