add link/unlink functions to sidebar