Fixed the capitalization issue and added a listener to reset the IP count value when the dialog is re-opened