cleaned up the hosted template