Improved handling of selected cells across tables; added delete and add buttons