Optimize TableAdapter
PeriodicTableView: Fix a bug when click position was higher than number of items