added returnTag function
added link support for indexes