Implement table click