update index and esc close dialog