retrieve table name when clicked on menu-item