function to call clocktable