Chnages to apform (setLink,remLink)