new window for charge integration-bug fixed