index: using table for category

Signed-off-by: Micky Ching <mickyching@gmail.com>