generate category in table page