edit directory and links