restore selection and table height