Reorder plugin headers and update page access check