Add configuration UI for setting agent port number.