adding dynamic navbar