refreshing CTS JS and UI