add nav functionality