updated with table row selection