removing obsolete links in sidebar