bind events to table rather than td elements where possible