replace category.parent_id == 0 by category.top?