made changes to addNav

made changes, bug fix to addNav()