Modified Table tab to use click event