no need for the undefine
correct topic and category counting query
revive old styling that was stripped