Add onClick listeners for tabs.