reset templates
remove fragments to restart from scratch
rename fragments to fits flask convention
cleaning after reset of detail template