Fixed that pages not with view perm are not anymore displayed in menu

On the way there... discovered a hole lot of bugs...