adds dynamic navigation