fixing edit memory links, fixing delete memory