remove '/'s from nav function