new providers and clean up of inserthtml function