keep selection after rerendering tables