removing uneeded code in the links ctrl and making sure users don't see unneeded links