added nav functionality