Added logic for hide link