Added minor selection event handling to the tables.