remove unused templates
start on history, extract partial
fix history