tweaked links functionality