added nav function