Add fields to Detail.php files