adds codes to the tag.php