added link tagging functionality