fixing subpage filtering and menu display