fixed a bug where the edit button for pages was visible to everyone.