change table on selection and hover