add head parameter in options for the refresh insert function