Cleanup of front-end templates for contacts