removed redundant delete link code with partial