adding related tag functionality