added table header click functions