Restricted codes to only display new records. Refactored the codes template to not include the trench by default