clean up old templates