fixing trackLink and trackForm to handle multiple elements