Retain table row selection after table update
Added getResponse function to CustomDialog.java