set up dynamic navbar