added dynamic navigation