Implemented link removal
Fixed bug with new link being selected after deletion