Updating cookie nav function