heavily simplified underlying logic

alos restyled category view and edit link