adding two function for get data of selected table

tablesLeftClick(event) and getTableData will added